package my.package0407;

import java.util.Scanner;

public class dome8 {public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    System.out.println("Known list{19, 28, 37, 46, 50}");
    System.out.println("Please enter a data for the list:");
    int x = sc.nextInt();
    findsy(x);
}
    public static void findsy(int x){
        int[] arr = {19, 28, 37, 46, 50};
        for(int i = 0;i < 5;i++){
            if(arr[i] == x){
                System.out.println(x + "index value is:" + i);
            }
        }
    }
}
